package com.w.wx.mapper;

import com.w.wx.domain.CommentsReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Mapper
@Component
public interface CommentsReplyMapper {
    int deleteByPrimaryKey(Integer rid);

    int insert(CommentsReply record);

    CommentsReply selectByPrimaryKey(Integer rid);

    List<CommentsReply> selectAll();

    int updateByPrimaryKey(@Param("rid") Integer rid,@Param("likeNum") Integer likeNum);

    ArrayList<CommentsReply> selectAllSon(@Param("inId") Integer inId);

    ArrayList<CommentsReply> selectByTimeOnlyThree(@Param("inId") Integer inId);
    int selectSums(int inId);


    int deleteByInid(Integer inId);
}